<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:composite="http://java.sun.com/jsf/composite"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      >
<h:head>
        <title>.: Gerenciador Financeiro Familiar :.</title>        
    </h:head>    
<h:body>	
	<h:form id="fmLogin" acceptcharset="ISO-8859-1">
		<p:growl id="growl" showDetail="true" sticky="true"/>
		<center>
			<p:graphicImage url="/imagens/logo.jpg" />
			
			<p:separator style="width: 100%; height: 5px" />			
			
			<p:panelGrid columns="2">
				<f:facet name="header">Acesso</f:facet>
				<p:outputLabel value="Usuario"/> <p:inputText value="#{loginBean.login}"/>
				<p:outputLabel value="Senha"/> <p:password value="#{loginBean.password}"/>
				<h:inputHidden/><p:commandButton ajax="false" 
												 update=":fmLogin" 
												 value="Entrar" 
												 action="#{loginBean.logar()}"
												 actionListener="#{limiteDespesasBean.novaConsulta()}"
												 />
			</p:panelGrid>			
			
			<p:separator style="width: 100%; height: 5px" />
			<p:commandLink value="Ainda não sou cadastrado" icon="ui-icon-extlink" action="#{usuarioBean.novoUsuario()}" actionListener="#{menuBean.viewUsuario()}"/>
						
			<p:separator style="width: 100%; height: 5px" />
		</center>
		
	</h:form>	
</h:body>
</html>